#!/bin/bash

config_file="$HOME/.config/i3/polybar/config.ini"
# module_file="$HOME/.config/i3/polybar/module.ini"

if grep -q "tray-position = none" "$config_file"; then
    sed -i 's/tray-position = none/tray-position = center/' "$config_file"
    # sed -i 's/content = 💔/content = 💙/' "$module_file"
else
    sed -i 's/tray-position = center/tray-position = none/' "$config_file"
	# sed -i 's/content = 💙/content = 💔/' "$module_file"
fi

~/.config/i3/sh/polybar-restart.sh
